package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Description:
 * User: 故我
 * Date: 2023-11-09
 * Time: 20:58
 */
@Data
public class ArticleInfo {
    private Integer id;
    private String title;
    private String content;
    // 时间格式化 格林尼治时间 + 8小时
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createtime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime updatetime;
    private Integer uid;
    private Integer rcount;//阅读量
    private Integer state;//文章的状态
    private Integer likecount; //文章点赞量
    private Integer treadcount; // 文章踩量
}
